<%@ page import="com.luojiaoj.news.News" %>



<div class="fieldcontain ${hasErrors(bean: newsInstance, field: 'title', 'error')} ">
    <label for="title">
        <g:message code="news.title.label" default="Title"/>

    </label>
    <g:textField name="title" maxlength="32" value="${newsInstance?.title}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: newsInstance, field: 'content', 'error')} ">
    <label for="content">
        <g:message code="news.content.label" default="Content"/>

    </label>
    <g:textArea name="content" cols="40" rows="5" maxlength="65535" value="${newsInstance?.content}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: newsInstance, field: 'create', 'error')} required">
    <label for="create">
        <g:message code="news.create.label" default="Create"/>
        <span class="required-indicator">*</span>
    </label>
    <input type="hidden" value="">
    <g:select id="create" name="create.id" from="${com.luojiaoj.User.list()}" optionKey="id" required=""
              value="${newsInstance?.create?.id}" class="many-to-one"/>
</div>

